package io.bdmc.modules.bss.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
 * <p>
 * 
 * </p>
 *
 * @author HuangLu
 * @since 2019-01-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class SmkPush extends Model<SmkPush> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "push_id", type = IdType.AUTO)
    private Long pushId;

    /**
     * 用户id
     */
    private Long userId;

        /**
     * 推送配置id
     */
    private Long configId;

    /**
     * 火警推送a=短信，b=语音，c=微信
     */
    private String fire;

    /**
     * 故障推送a=短信，b=语音，c=微信
     */
    private String breakdown;

    /**
     * 离线推送a=短信，b=语音，c=微信
     */
    private String offline;

    /**
     * 拆卸推送a=短信，b=语音，c=微信
     */
    private String unload;

    /**
     * 清除报警推送a=短信，b=语音，c=微信
     */
    private String clear;

    private String email;


    /**
     * 备注
     */
    private String remark;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createDate;

    private String createBy;

       /**
	 * 用户手机号
	 */
    @TableField(exist = false)
    private String mobile;
       /**
	 * 用户微信号
	 */
    @TableField(exist = false)
    private String openid;

    @Override
    protected Serializable pkVal() {
        return this.pushId;
    }

    @Override
    public String toString() {
        return "SmkPush{" +
        "pushId=" + pushId +
        ", userId=" + userId +
        ", fire=" + fire +
        ", breakdown=" + breakdown +
        ", offline=" + offline +
        ", unload=" + unload +
        ", clear=" + clear +
        ", remark=" + remark +
        ", createDate=" + createDate +
        ", createBy=" + createBy +
        "}";
    }
}
